package com.ruoyi.event.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 违规报告业务对象 event_wgbg
 *
 * @author strongme
 * @date 2023-02-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EventWgbgBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long wgbgId;

    /**
     * 违规人员id
     */
    @NotNull(message = "违规人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 公安机关
     */
    @NotBlank(message = "公安机关不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gajg;

    /**
     * 违规行为
     */
    @NotBlank(message = "违规行为不能为空", groups = {AddGroup.class, EditGroup.class})
    private String wgxw;

    /**
     * 违规日期
     */
    @NotNull(message = "违规日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date wgrq;

    /**
     * 备注
     */
    private String remark;

    /**
     * 附件
     */
    private String fj;


}
